package com.feinno.urcs.group.main;


import org.helium.framework.spi.Bootstrap;

/**
 * Created by Lei Gao on 5/14/15.
 */
public class GroupBootstrap {

    public static void main(String[] args) throws Exception {
		String classPath = System.getProperty("java.class.path");
		String[] pathArray = classPath.split(":");
		for (String path : pathArray) {
			Bootstrap.INSTANCE.addPath(path);
		}
		Bootstrap.INSTANCE.initialize("bootstrap.xml");
		System.out.println("============ BOOTSTRAP START OK =================");

//        String fmt = "org.slf4j.simpleLogger.log.%s";
//        System.setProperty(String.format(fmt, "com.feinno.urcs.group.cache.GroupActiveServiceMemoryImpl"), "debug");
//        System.setProperty(String.format(fmt, "com.feinno.rpc.channel.tcp.RpcTcpClientHandler"), "error");
//        System.setProperty(String.format(fmt, "com.feinno.rpc.channel.tcp.RpcTcpConnection"), "error");
//        System.setProperty(String.format(fmt, "com.feinno.superpojo.generator.CodeGenerator"), "warn");
//        Bootstrap.INSTANCE.addPath("group-as-main/build/resources/main/META-INF");
//        Bootstrap.INSTANCE.addPath("group-as-main/build/resources/main/config");
//        Bootstrap.INSTANCE.initialize("bootstrap.xml");
//        System.out.println("============ BOOTSTRAP START OK =================");
    }
}
